/*
 * This class help to store place ids for a unique set of country and set
 * When the list of 
 */
package formServlets;

import java.io.Serializable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

public class PlaceInfo implements Serializable {
	  @PrimaryKey
	    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	    private Key key;

	    @Persistent
	    private String placeId;       // when user searches for school in a particular place ,unique placeid
	                                  // can refer to a place and list all schools

	    @Persistent
	    private String Country;    
	    
	    @Persistent
	    private String State;
	    
	    public PlaceInfo( String country, String state)
	    {
	     placeId= country+state;
	     this.Country=country;
	     this.State=state;     
	    }

	    public Key getKey() {
	        return key;
	    }

	    public String getPlaceid() {
	        return this.placeId;
	    }

	    public String getCountry() {
	        return this.Country;
	    }

	    public String getState() {
	        return this.State;
	    }

	    
	    public void setCountry(String Country) {
	    	this.Country=Country;
	    }

	    public void setState(String state) {
	        this.State=state;
	    }

	    
}


